package com.mxpio.boot.autoconfigure.quartz;

import com.mxpio.boot.quartz.api.QuartzApiConfiguration;
import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import com.mxpio.framework.quartz.QuartzConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(QuartzApiConfiguration.class)
@AutoConfigureAfter(QuartzApiAutoConfiguration.class)
@Import(QuartzConfiguration.class)
@Slf4j
public class QuartzAutoConfiguration {

	public QuartzAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Quartz Module Loading");
		CommonConstant.addModule(new ModuleVO("Quartz","任务调度模块"));
	}

}
